package com.hzqy.persistence.dao.broadcast;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.CmContentVo;
import com.hzqy.web.vo.behaviorControl.IndustrySchedulesVo;
import com.hzqy.web.vo.broadcast.CmReviewGroupVo;

@Repository
public class BroadcastDao  extends PersistenceDao<CmContentVo,Integer> {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());

	public List<CmContentVo> selectContentListByOrgId(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectContentListByOrgId", map);
	}

	public int updateContent(CmContentVo cmContentVo) {
		return getSqlSession().update(this.getNamespace() + "updateCmContentVo", cmContentVo);
	}
	
	public List<CmContentVo> selectContentCountByOrgId(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectContentCountByOrgId", map);
	}
	
	public List<CmContentVo> selectContentListByOrgIdHY(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectContentListByOrgIdHY", map);
	}

	
	public List<CmContentVo> selectContentCountByOrgIdHY(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectContentCountByOrgIdHY", map);
	}
	
	public List<CmReviewGroupVo> selectCustomContentCount(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectCustomContentCount", map);
	}
	
	public List<CmContentVo> selectCustomContentCountList(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace() + "selectCustomContentCountList", map);
	}
	
	public CmReviewGroupVo selectReviewGroupById(CmReviewGroupVo cmReviewGroupVo) {
		return getSqlSession().selectOne(this.getNamespace() + "selectReviewGroupById", cmReviewGroupVo);
	}
	
	public int selectCustomContentListCount(CmReviewGroupVo cmReviewGroupVo) {
		return getSqlSession().selectOne(this.getNamespace() + "selectCustomContentListCount", cmReviewGroupVo);
	}
	
}
